package test;

import comment.Comment;

/**
 *create by tbj
 */
public class MyBubble {
	public static void sort(int[] a){
		int n=a.length;
		for(int i=0;i<n;i++){
			for(int j=1;j<n-i;j++){
				if(a[j-1]>a[j]){
					Comment.swapIntArr(a, j-1, j);
				}
			}
		}
	}
	public static void main(String[] args) {
		int[] a=Comment.getSortIntArr();
		MyBubble.sort(a);
		for (int i : a) {
			System.out.print(i+" ");
		}
	}
}
